package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoInformationMassPhotos;
import com.muyu.danmo.mapper.DanmoInformationMassPhotosMapper;
import com.muyu.danmo.service.IDanmoInformationMassPhotosService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 社团图片idService业务层处理
 * 
 * @author yangle
 * @date 2024-12-11
 */
@Service
public class DanmoInformationMassPhotosServiceImpl implements IDanmoInformationMassPhotosService
{
    @Autowired
    private DanmoInformationMassPhotosMapper danmoInformationMassPhotosMapper;

    /**
     * 查询社团图片id
     * 
     * @param id 社团图片id主键
     * @return 社团图片id
     */
    @Override
    public DanmoInformationMassPhotos selectDanmoInformationMassPhotosById(Long id)
    {
        return danmoInformationMassPhotosMapper.selectDanmoInformationMassPhotosById(id);
    }

    /**
     * 查询社团图片id列表
     * 
     * @param danmoInformationMassPhotos 社团图片id
     * @return 社团图片id
     */
    @Override
    public List<DanmoInformationMassPhotos> selectDanmoInformationMassPhotosList(DanmoInformationMassPhotos danmoInformationMassPhotos)
    {
        return danmoInformationMassPhotosMapper.selectDanmoInformationMassPhotosList(danmoInformationMassPhotos);
    }

    /**
     * 新增社团图片id
     * 
     * @param danmoInformationMassPhotos 社团图片id
     * @return 结果
     */
    @Override
    public int insertDanmoInformationMassPhotos(DanmoInformationMassPhotos danmoInformationMassPhotos)
    {
        return danmoInformationMassPhotosMapper.insertDanmoInformationMassPhotos(danmoInformationMassPhotos);
    }

    /**
     * 修改社团图片id
     * 
     * @param danmoInformationMassPhotos 社团图片id
     * @return 结果
     */
    @Override
    public int updateDanmoInformationMassPhotos(DanmoInformationMassPhotos danmoInformationMassPhotos)
    {
        return danmoInformationMassPhotosMapper.updateDanmoInformationMassPhotos(danmoInformationMassPhotos);
    }

    /**
     * 批量删除社团图片id
     * 
     * @param ids 需要删除的社团图片id主键
     * @return 结果
     */
    @Override
    public int deleteDanmoInformationMassPhotosByIds(Long[] ids)
    {
        return danmoInformationMassPhotosMapper.deleteDanmoInformationMassPhotosByIds(ids);
    }

    /**
     * 删除社团图片id信息
     * 
     * @param id 社团图片id主键
     * @return 结果
     */
    @Override
    public int deleteDanmoInformationMassPhotosById(Long id)
    {
        return danmoInformationMassPhotosMapper.deleteDanmoInformationMassPhotosById(id);
    }
}
